<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 1、导入ol -->
    <script src="./OL_SDK/include-openlayers-local.js"></script>
    <!-- SDK  software development kit软件开发包 -->
</head>

<body>
    <!-- 2、设置地图容器的挂载点 -->
    <div id="map">

    </div>
    <script>
        var gaode = new ol.layer.Tile({
            title: "高德地图",
            source: new ol.source.XYZ({
                url: 'http://wprd0{1-4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x={x}&y={y}&z={z}',
                wrapX: false
            })
        });
        /* 3、调用中地接口,获取ig server中的数据  ajax*/
        var cityLayer = new Zondy.Map.Doc("", "city01", {
            ip: "localhost",
            port: 6163
        })
        /* 4、实例化地图 */
        const map = new ol.Map({
            target: "map",
            layers: [gaode, cityLayer],
            view: new ol.View({
                center: [120, 50],
                zoom: 4,
                projection: "EPSG:4326"
            })
        })
    </script>
</body>

</html>